class Student {
 String LearnLesson;
 private Teacher name;
    Student(int code,String name,char sex,String lesson, Teacher t ){
        super(code,name,sex); 
        setLearnLesson(lesson);
        this.name = t ;
} 
String getLearnLesson(){ 
 return LearnLesson; 
} 
void setLearnLesson(String LearnLesson){
 this.LearnLesson = LearnLesson; 
}

public String toString(){
 return"学生编号:"+getCode()+"姓名:"+getName()+"性别:"+getSex()+"选课:"+LearnLesson+"老师："+name.name; 
} 
} 